const server = require('../bin/www');
const app = server.app;
const request = require('supertest');
const should = require('should');

suite('index-route-unit-tests', function () {
    test('.get("/", callback)', function (done) {
        request(app)
            .get('/')
            .set('accept', 'application/json')
            .expect(200)
            .end(function (err, res) {
                var headers = res.headers;
                headers.should.have.property('content-type').be.eql('text/html; charset=utf-8');
                should.ifError(err);
                done();
            });
    });
});